package cn.z2huo.usercenter.management.app.dao.user;

import cn.z2huo.usercenter.mapper.user.UserMapper;
import cn.z2huo.usercenter.model.dataobject.user.UserDO;
import jakarta.annotation.Nonnull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *
 * @author z2huo
 */
@Repository
@RequiredArgsConstructor
public class UserDAO {

    private final UserMapper userMapper;

    @Nonnull
    public List<UserDO> listAllUser() {

        return userMapper.selectByExample(null);
    }

}
